package com.sitech.ibnms.c3p.mappers;

import com.sitech.ibnms.c3p.domain.SysDict;
import com.sitech.ibnms.c3p.domain.SysDictItem;
import org.apache.ibatis.annotations.Param;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

/**
 * @author liujhc
 */
public interface SysDictMapper {

    @Cacheable("longTerm")
    SysDict findSysDictById(@Param("dictId") String dictId);

    @Cacheable("longTerm")
    List<SysDictItem> findSysDictItemsById(@Param("dictId") String dictId);

    @Cacheable("longTerm")
    List<SysDictItem> findSysDictItemsBySQL(@Param("itemsSql") String itemsSql);
}
